<template>
	<view class="examinationdetails">
		<navigator url="../../hospitalExpense/priceDetail/priceDetail">
			<view class="box"><text>血常规三项</text></view>
		</navigator>

		<view class="content" v-for="v in Data.list">
			<view class="left">{{ v.name }}</view>
			<view class="right">
				<view class="top">{{ v.result }}</view>
				<view class="bottom">参考范围：115-150g/L</view>
			</view>
		</view>
	</view>
</template>

<script setup>
import { reactive, onMounted } from 'vue';
import { medicalPackageItem } from '@/api/ExaminationService.js';
import { onLoad } from '@dcloudio/uni-app';
const Data = reactive({
	list: [
		// { name: '血红蛋白', result: '300g/L', scope: '115-150g/L' },
	]
});

onMounted(() => {});

onLoad(() => {
	medicalPackageItem({ id: 1, reportId: 1 })
		.then(({ data }) => {
			Data.list = data.data;
		})
		.catch(err => {
			console.log(err);
		});
	console.log(Data.list);
});
</script>

<style lang="less">
.examinationdetails {
	width: 688rpx;
	margin: 0 auto;
	.box {
		margin-top: 20rpx;
		width: 688rpx;
		height: 94rpx;
		background-color: #f3f3f4;
		line-height: 94rpx;
		text {
			margin-left: 20rpx;
		}
	}
	.content {
		height: 64px;
		background-color: #fff;
		border-bottom: 1rpx solid #f2f2f2;
		display: flex;
		justify-content: space-between;
		align-items: center;
		.left {
			font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
			font-weight: 400;
			font-style: normal;
			font-size: 14px;
			margin-left: 20rpx;
		}
		.right {
			text-align: right;
			.top {
				font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
				font-weight: 400;
				font-style: normal;
				font-size: 28rpx;
			}
			.bottom {
				color: #999999;
				font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif;
				font-weight: 400;
				font-style: normal;
				font-size: 24rpx;
			}
		}
	}
}
</style>
